package study.json.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Part {
    private int productType;
    private String title;
    private BigDecimal price;
    private PartType type;

    @Override
    public String toString() {
        return "Part{" +
            "productType=" + productType +
            ", title='" + title + '\'' +
            ", price=" + price +
            ", type=" + type +
            '}';
    }
}
